package dao;

import java.io.File;

import bean.MediaBean;
//TODO
/**
 * Class responsible for the operations of MediaDAO
 * @author Otavio Lima, Laura Dutra
 *
 */

public class MediaDAO extends AbstractDAO<MediaBean> {

	
	private static final File DB = new File("./MediaDB.xml");
	private static MediaDAO instance;

	/**
	 * Constructor
	 */
	private MediaDAO(){

	}


	/**
	 * Singleton 
	 * @return instance of MediaDAO
	 */

	public static synchronized MediaDAO getInstance(){
		if(instance == null)
			instance = new MediaDAO();

		return instance;
	}


	@Override
	protected File getDBFileName() {
		return DB;
	}

}

